<template>
  <div class="fragments">
    <headerWrap></headerWrap>
    <div class="container-wrap">
      <div class="container-y" style="overflow: hidden">
        <switch-tab :tabData="tabData"
                    :switchFlag="switchFlag"
                    @_onclick="switchClick">
        </switch-tab>
        <div class="pull-wrap">
          <div id="pending" class="mescroll" v-show="switchFlag == 0">
            <ul class="data-list-wrap">
              <li class="d-item"
                  v-if="pendingList.length"
                  v-for="(item,index) in pendingList"
                  :key="index"
                  @click="go_details(item)">
                <div class="i-img" :class="iconBc">
                  <i class="iconfont" :class="icon"></i>
                </div>
                <div class="i-content">
                  <div class="i-title">
                    {{item.name}}
                  </div>
                  <div class="i-time">
                    {{item.createTime}}
                  </div>
                </div>
                <div :class="item.isTodo"></div>
              </li>
            </ul>
          </div>
          <div id="complete" class="mescroll" v-show="switchFlag == 1">
            <ul class="data-list-wrap">
              <li class="d-item"
                  v-if="completeList.length"
                  v-for="(item,index) in completeList"
                  :key="index"
                  @click="go_details(item)">
                <div class="i-img" :class="iconBc">
                  <i class="iconfont" :class="icon"></i>
                </div>
                <div class="i-content">
                  <div class="i-title">
                    {{item.name}}
                  </div>
                  <div class="i-time">
                    {{item.createTime}}
                  </div>
                </div>
                <div class="i-state-complete"></div>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
    <transition name="slideRight">
      <router-view></router-view>
    </transition>
  </div>
</template>

<script>
  import indexList from "./todayNewsIndexList.js"
  export default indexList
</script>
